package com.github.niefy.common.validator;

import lombok.experimental.Delegate;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * @author : [86188]
 * @description : [一句话描述该类的功能]
 * @createTime : [2023/2/23 16:15]
 * @updateUser : [86188]
 * @updateTime : [2023/2/23 16:15]
 */
public class ValidationList<E> implements List<E> {
    @Delegate
    @Valid
    public List<E> list = new ArrayList<>();

    @Override
    public String toString() {
        return list.toString();
    }
}
